# coding=utf-8
# @Time    : 2018/3/15 14:01
# @Author  : Jiangxu
# @File    : TkSql.py
# @Software: PyCharm
from Tkinter import *
import tkMessageBox
from MySqlTest import *

root = Tk()
root.title("hello world")
root.geometry('300x300')  # 是x 不是*


sql = "SELECT * FROM EMPLOYEE WHERE INCOME > '%d'" % (1000)
Sql = MySqldbExecute(sql)
Sql.ExecuteSql(sql)

# l1 = Label(root, text="xls名：")
# l1.pack()  # 这里的side可以赋值为LEFT  RTGHT TOP  BOTTOM
# xls_text = StringVar()
# xls = Entry(root, textvariable=xls_text)
# xls_text.set(" ")
# xls.pack()




def on_click():
	# x = xls_text.get()
	# s = sheet_text.get()
	# l = loop_text.get()
	# sl = sleep_text.get()
	# string = str("xls名：%s  " % x)
	# print("xls名：%s  " % (x))
	tkMessageBox.showinfo(title='aaa', message=Sql.ExecuteSql(sql))


Button(root, text="press", command=on_click).pack()

root.mainloop()